package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("demo_user")//实现对象与表名的映射
public class User {
    //设定主键自增
    @TableId(type = IdType.AUTO)
    private Integer id;
   // @TableField("name")
    private String name;
    //@TableField("age")
    private Integer age;
   // @TableField("sex")
    private String sex;
}
